﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="equipment_add99.aspx.cs" Inherits="HYSoft.Web.equipment_add99" %>

<%@ Register Src="~/Controls/menu.ascx" TagName="uc2" TagPrefix="uc2" %>
<%@ Register Src="~/Controls/Search.ascx" TagName="uc3" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/equipmentadd.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
    <uc2:uc2 ID="head" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
    <div class="tables">
        <%--top标记--%>
        <div>
            <img src="Images/top.PNG" width="100%" />
        </div>
        <div>
            <table class="table1">
             <div class="part_ws_bt">
                添加摄像头节点</div>
                <tr><td  colspan="4" style=" height:10px;"></td></tr>
                <tr>
                    <td class="style2" align="right" style="width: 40px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        传感器类型：
                    </td>
                    <td style="width: 300px">
                        <asp:DropDownList ID="DropDownList3" Width="155" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
                        </asp:DropDownList>
                        <b style="color: red">*</b>
                    </td>
                    <td rowspan="8">
                        添加安装图片：
                        <br />
                        <div style="margin: 0px auto 0px auto; background: url(images/1.jpg) no-repeat; width: 340px;
                            height: 280px;">
                            <img src="files/default.jpg" style="margin: 20px 10px 0px 10px; width: 320px; height: 240px;" />
                            <br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;替换照片：<asp:FileUpload ID="FileUpload1" runat="server" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        监测员：
                    </td>
                    <td style="width: 300px">
                        <asp:DropDownList ID="DropDownList12" runat="server" Width="155">
                        </asp:DropDownList>
                        <b style="color: red">*</b>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="本单位没有已审批的普通用户！"
                            ControlToValidate="DropDownList12"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2" align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        <span class="style1" style="text-align: left; width: 92px;">硬件地址(MAC值)：</span>
                    </td>
                    <td style="width: 300px">
                        <asp:DropDownList ID="DropDownList13" runat="server" Width="155">
                        </asp:DropDownList>
                        <b style="color: red">*</b><asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                            runat="server" ErrorMessage="本单位已无未分配的此类传感器mac！" ControlToValidate="DropDownList13"></asp:RequiredFieldValidator>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="style2" align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        手机卡号：
                    </td>
                    <td style="width: 300px">
                    <input type="text" runat="server" id="TextBox16" />
                        <%--<asp:TextBox ID="TextBox16" runat="server"></asp:TextBox>--%><b style="color: red">*</b><asp:RegularExpressionValidator
                            ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox16"
                            ErrorMessage="请输入正确手机卡号" ValidationExpression="^1[358]\d{9}$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2" align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        安装地址：
                    </td>
                    <td style="width: 300px">
                    <input type="text" runat="server" id="TextBox17" />
                        <%--<asp:TextBox ID="TextBox17" runat="server"></asp:TextBox>--%><b style="color: red">*</b><asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ErrorMessage="不能为空！" ControlToValidate="TextBox17"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style2" align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        所属监测点：
                    </td>
                    <td style="width: 300px">
                        <asp:DropDownList ID="DropDownList2" runat="server" Width="155">
                        </asp:DropDownList>
                        <b style="color: red">*</b> &nbsp;
                    </td>
                </tr>
            
                 <tr>
                    <td class="style2" align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        供电模式：
                    </td>
                    <td style="width: 300px">
                    <input type="text" runat="server" id="TextBox2" value="电池" />
                        <%--<asp:TextBox ID="TextBox2" runat="server" Text="电池"></asp:TextBox>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style2" align="right" style="width: 20px">
                        <img src="images/p_3.jpg" width="12" height="12" />
                    </td>
                    <td style="width: 92px;">
                        摄像头采集频率(1~72小时)：
                    </td>
                    <td style="width: 300px">
                    <input type="text" runat="server" id="TextBox14" />
                       <%-- <asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>--%>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator10" runat="server"
                            ControlToValidate="TextBox14" ErrorMessage="*位移计频率应为1-72小时" ValidationExpression="(^(7[0-2]|[1-6][0-9]|[1-9])$)"></asp:RegularExpressionValidator>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="4">
                        <div style="padding: 10px 0">
                            <asp:Button runat="server" Text="增加传感器" ID="Button1" OnClick="Button1_Click"></asp:Button>&nbsp;
                        </div>
                    </td>
                </tr>
            </table>
            <div style="width: 850px; margin: 0px auto 0px auto; height: 80px;">
                <img src="images/p_2.jpg" style="width: 850px;" />
                <uc3:uc3 ID="Uc1" runat="server" />
            </div>
        </div>
    </div>
</asp:Content>
